package com.gym.code.config.admin.controller;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.gym.code.config.admin.service.generate.ICodeFileGenerateService;

/**
 * 
 * @author xinchun.wang
 * @email: 532002108@qq.com
 * @createTime 2015-5-1 上午11:24:20
 */
@Controller
@RequestMapping("/generate")
public class CodeGenerateController {
	
	@Autowired
	private ICodeFileGenerateService codeFileGenerateService;
	
	@ResponseBody
	@RequestMapping("/table")
	public Map<String, Object> genTable(long tableId) {
		return codeFileGenerateService.genTable(tableId);
	}
	
	
	
	@ResponseBody
	@RequestMapping("/db")
	public Map<String, Object> genDB(long dbId) {
		return null;
	}
	
}
